fid=fopen('train.dat');
train = textscan(fid,'%u %u %u %u');
fclose(fid);
train=cell2mat(train);

fid=fopen('test.dat');
test = textscan(fid,'%u %u %u %u');
fclose(fid);
test=cell2mat(test);

save('train.mat','train');
save('test.mat','test');